package com.smbms.dao.provider.mapper;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.smbms.pojo.Bill;
import com.smbms.pojo.Provider;
import com.smbms.pojo.User;

public interface ProviderMapper {
	//鎺ュ彛 鏂规硶 鍜�  鏄犲皠鏂囦欢涓畾涔夌殑鏌ヨ鎿嶄綔 鏄淇濇寔涓�鑷寸殑
	//1.鏂规硶鍚� 瑕佸拰 鏌ヨ鐨処D涓�鑷�   鏂规硶鐨勮繑鍥炵被鍨嬭 鍜� 鏌ヨ杩斿洖鍊间竴鑷� 
	public int count();
	public List<Provider> searchAll();
	
	public List<Provider> searchByRoleAndName(
			@Param("proCode")String proCode,
			@Param("proName")String proName);
	
	public int add(Provider provider);
	public int delUser(Provider provider);
	public int modify(Provider provider);

	public List<Provider>
		searchByForeach(Integer[] providerId );
	public List<Provider>
		searchByForeach2(List<Integer> providerId2);
	
	public List<Provider> searchByChoose(
			@Param("proCode")String proCode,
			@Param("proName")String proName,
			@Param("proContact")String proContact,
			@Param("creationDate")String creationDate);
	
}
